#!/bin/zsh

arg="$1"

function usage() {
  echo "Usage: $0 [self|work]"
}

if [ "$arg" = "self" ]; then
  git config --global user.name 'miyuki4j'
  git config --global user.email 'rebirthypp@163.com'
elif [ "$arg" = "work" ]; then
  git config --global user.name 'wb_zhouhe02'
  git config --global user.email 'wb_zhouhe02@meituan.com'
else
  usage
  exit 1
fi

echo "switched, config:"
git config --global --list
